/**
 * 
 */
package tests;

import static org.junit.Assert.*;
import modele.Portes;
import modele.TrainAterrissage;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * @author Jo
 *
 */
public class TrainAterrissageTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSwitcher() {
		TrainAterrissage p = new TrainAterrissage();
		p.switcher();
		assertTrue("Train pas down", p.isDown());
	}

	@Test
	public void testFinish() {
		TrainAterrissage p = new TrainAterrissage();
		p.switcher();
		p.finish();
		assertTrue("Train pas ouvert", p.isOuvert());
	}

}
